import React,{useState,useEffect} from 'react'
import { connect } from 'dva'
import { NavBar ,Icon ,Carousel,WhiteSpace} from 'antd-mobile'
function BuyInfo(props){
  const {buyInfo,dispatch} = props
  useEffect(() => {
    (async ()=>{
      console.log('buyInfo loaded')

    })()
  },[])
  return (
    <div className="buy-info-page">
      <NavBar
        mode="light"
        icon={<Icon type="left" />}
        onLeftClick={() => props.history.go(-1)}
      >已买到的商品</NavBar>
    </div>
  )
}
export default connect(({buyInfo}) => {
  return {buyInfo}
})(BuyInfo)
